package wowmobile;

import java.util.Comparator;

public class ThreatComp implements Comparator<PlayerThreat> {

    public int compare(PlayerThreat a, PlayerThreat b) {
        if(b.getThreat() - a.getThreat() > 0)
            return 1;
        else if(b.getThreat() - a.getThreat() < 0)
            return -1;
        else
            return 0;
    }
}